package net.huashitong.ssydt.provider.exam.service;


import net.huashitong.ssydt.exam.entity.SsExamCollectionQuestion;
import net.huashitong.ssydt.exam.entity.vo.QuestionCollectionListOutVO;
import net.huashitong.ssydt.exam.entity.vo.QuestionErrorCollectionListInVO;

import java.util.List;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.09.12
 */
public interface SsExamCollectionQuestionService {

    int deleteByPrimaryKey(Long id);

    int insert(SsExamCollectionQuestion record);

    int insertSelective(SsExamCollectionQuestion record);

    SsExamCollectionQuestion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsExamCollectionQuestion record);

    int updateByPrimaryKey(SsExamCollectionQuestion record);

    List<QuestionCollectionListOutVO> countGroupByBelongYearMonthByUserId(QuestionErrorCollectionListInVO questionErrorCollectionListInVO);

    List<SsExamCollectionQuestion> findByUserIdWithBelongYearMonth(String userId, String belongYearMonth);

    void deleteByUserId(String userId);

    SsExamCollectionQuestion getByUserIdWithQuestionId(String userId, Long questionId);

    int deleteByUserIdWithQuestionId(String userId, Long questionId);
}
